package com.urguxxi.springdemo.dto;

import com.urguxxi.springdemo.entity.User;

/**
 * 一个新类，数据传输对象，用于传输参数
 * @author Shannon
 */
public class ResultDTO {

    private Integer code;

    private String msg;

    private Object data;

    public ResultDTO() {
    }

    public ResultDTO(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResultDTO(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

//    public ResultDTO(Integer code, String msg, User user){
//        this.code = code;
//        this.msg = msg;
//
//    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
